package com.lumyc.openfeignserver.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author lumyc
 * @Date 2022/11/16 10:38
 * @Version 1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Value("${server.port}")
    private String port;

    @GetMapping("/get/by/{id}")
    public String getById(@PathVariable String id){
        return "port:"+port+"  "+"id:"+id;
    }
}
